const experrss = require('express')
const app = experrss()
const homedata = require('./data/home.json')
app.get('/api/home', (req, res) => {
  console.log(req)
  res.send(homedata)
})
app.post('/api/login', (req, res) => {
  console.log(req)
  res.send({ data: { token: 123 } })
})
app.listen(3300, () => {
  console.log('启动接口：http://localhost:3300')
})
